﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using Itau.IM.Common.Mainframe.Book;

namespace Itau.IM.Interpolador.Contract
{
    [BookClass(167)]
    public class ErroEO
    {
        [BookStringField(1, 8)]
        public string Tabela { get; set; }

        [BookStringField(9, 5)]
        public string SqlCode { get; set; }

        [BookStringField(14, 70)]
        public string SqlMensagem { get; set; }

        [BookStringField(84, 8)]
        public string SqlErrp { get; set; }

        [BookCollectionField(92, typeof(BookObjectFieldAttribute), typeof(ErroDescricaoEO), 6, "0000000000")]
        public List<ErroDescricaoEO> Erros { get; set; }

        [BookStringField(152, 8)]
        public string SqlWarning { get; set; }

        [BookStringField(160, 8)]
        public string SqlExt { get; set; }
    }
}
